<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!-- 载入文章头部页面，位置在/client文件夹下的header模板页面，模板名称th:fragment为header -->
<div th:replace="/client/header::header(null,null)"/>
<body>
<content id="content">
    <div id="recommend" style="margin-top: 100px">
        <h2>今日推荐</h2>
        <a href="##" class="more">查看更多>></a>
        <ul>
            <!-- 已配置推荐商品则显示配置内容 -->
            <th:block th:if="${#lists.isEmpty(goodsList)}">
                <h3>暂无搜索的商品~~</h3>
            </th:block>
            <th:block >
                <th:block th:each="goods : ${goodsList}">
                    <li>
                        <a th:href="@{'/goods/'+${goods.id}}">
                            <img th:src="@{${goods.image}}">
                            <p class="name" th:text="${goods.title}"></p>
                            <p>¥<span class="item_price" th:text="${goods.price}"></span></p><p></p>
                        </a>
                    </li>
                </th:block>
            </th:block>
        </ul>
    </div>
</content>
</body>
<!-- 载入文章尾部页面，位置在/client文件夹下的footer模板页面，模板名称th:fragment为footer -->
<div th:replace="/client/footer::footer"/>
</html>
